package com.lhd.order.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 订单项表
 * </p>
 *
 * @author lhd
 */
@Data
@TableName("t_order_item")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 订单ID 为null时为购物车
     */
    private Long orderId;

    /**
     * 购买付款时的商品单价
     */
    private Long orderItemPrice;

    /**
     * 购买数量
     */
    private Integer orderItemNum;


}
